package com.gof.example.abstractfactory;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/1 19:47.
 * haiming.fei@tongdun.cn
 */
abstract class OsAbstractFactroy {

    public void initInterface() {
        InterfaceController i = createInterfaceController();
        i.init();
    }

    public void initOperation() {
        OperationController o = createOperationController();
        o.init();
    }

    abstract InterfaceController createInterfaceController();

    abstract OperationController createOperationController();
}
